package com.biz.primus.ms.tms.trans;

import com.biz.primus.model.cat.vo.CatVo;
import com.biz.primus.ms.tms.dao.po.Cat;
import com.google.common.base.Function;
import org.springframework.beans.BeanUtils;

import javax.annotation.Nullable;

/**
 * @author yanweijin
 * @date 2017/9/12
 */
public class CatToCatVo implements Function<Cat, CatVo> {
    @Nullable
    @Override
    public CatVo apply(Cat po) {
        CatVo cat = new CatVo();
        BeanUtils.copyProperties(po, cat);
        return cat;
    }
}
